import pymysql

pymysql.connect(host='localhost',port=3306,user='root',password='lsk123',database='sys')
#创建游标
cursor = coon.csor()
cursor.excute("select * from book_info")
for row in cursor:;
print(row)